import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '外键房源',
    align:"center",
    dataIndex: 'roomId_dictText'
   },
   {
    title: '床位号',
    align:"center",
    dataIndex: 'no'
   },
   {
    title: '面积',
    align:"center",
    dataIndex: 'area'
   },
   {
    title: '类型',
    align:"center",
    dataIndex: 'type'
   },
   {
    title: '尺寸',
    align:"center",
    dataIndex: 'size'
   },
   {
    title: '品牌',
    align:"center",
    dataIndex: 'brand'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '外键房源',
    field: 'roomId',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"znzf_room,name,id"
     }
  },
  {
    label: '床位号',
    field: 'no',
    component: 'Input',
  },
  {
    label: '面积',
    field: 'area',
    component: 'InputNumber',
  },
  {
    label: '类型',
    field: 'type',
    component: 'Input',
  },
  {
    label: '尺寸',
    field: 'size',
    component: 'Input',
  },
  {
    label: '品牌',
    field: 'brand',
    component: 'Input',
  },
];
